$(window).ready(function(){
	$('#searchBtnSubject').bind('click',function(){
		//1.方式1,将表单数据转Field 数组(根据表单 selector)
		//var formFields = Gfa.ConditionHelper.buildCondition("form[name='searchFormSubject']");
		//1.方式2,将表单数据转Field 数组(根据表单 ID)
		//var formFields = Gfa.ConditionHelper.buildConditionByFormId("searchFormSubject");
		//1.方式3,将表单数据转Field 数组(根据表单Name)
		var formFields = Gfa.ConditionHelper.buildConditionByFormName("searchFormSubject");
		
		//2.表单对象转 json 字符
		var formFieldsJsonString = $.objToJSONString(formFields);
		alert(formFieldsJsonString);
		
		//3.拼接URL
		var url = App.ctx+"/pages/demo/single-table/demo_url_parameter_1_edit.jsp?subjectFields="+formFieldsJsonString;
		//alert(url);
		
		//4.方式1,打开Tab方式
		window.parent.TabTagUtils.closeAndNewTab("demo_url_parameter_1_edit","URL传值(方式1)",url);
		//4.方式2,在当前页打开方式
		//window.location.href = url;
	});
});